package com.project.template.mapper;

import com.project.template.dto.EditPasswordDTO;
import com.project.template.entity.SysUser;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Update;


@Mapper
public interface SysUserMapper extends BaseMapper<SysUser> {
    @Update("update sys_user set password = #{newPassword}" +
            " where username = #{username} and password = #{password}")
    int updatePassword(EditPasswordDTO editPasswordDTO);


}
